<template>
  <div class="hm-son" v-on="$listeners">
    我是子组件{{ $attrs }}
    <!-- <HmSon5 :xxx="$attrs.xxx" :ooo="$attrs.ooo" /> -->
    <HmSon5 v-bind="$attrs" v-on="$listeners" />
    <button @click="btnClick">接收所有的方法</button>
  </div>
</template>
<script>
import HmSon5 from './HmSon5.vue'
export default {
  components: {
    HmSon5
  },
  data() {
    return {
      num: 999
    }
  },
  methods: {
    btnClick() {
      this.$listeners.aaa()
      console.log(this.$listeners)
    }
  }
}
</script>
<style lang="scss" scoped>
.hm-son {
  width: 300px;
  height: 300px;
  border: 5px solid red;
}
</style>
